home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / chick000.swf / scripts / frame_3 / PlaceObject2_108_51 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2008-11-12  |  6KB  |  251 lines

  1. onClipEvent(enterFrame){
  2.    xx = _root.eggbox.chickentarget.hitTest(_root.egg1.hitted);
  3.    if(xx == false)
  4.    {
  5.    }
  6.    if(xx == true)
  7.    {
  8.       setProperty("_root.eggbox.chickentarget", _X, _root.chickenX);
  9.       with(_root.egg1)
  10.       {
  11.          gotoAndStop(1);
  12.       }
  13.       if(_root.chickenNumber == 0)
  14.       {
  15.          setProperty("_root.chicken0", _X, _root.chickenX);
  16.       }
  17.       if(_root.chickenNumber == 1)
  18.       {
  19.          setProperty("_root.chicken1", _X, _root.chickenX);
  20.       }
  21.       if(_root.chickenNumber == 2)
  22.       {
  23.          setProperty("_root.chicken2", _X, _root.chickenX);
  24.       }
  25.       if(_root.chickenNumber == 3)
  26.       {
  27.          setProperty("_root.chicken3", _X, _root.chickenX);
  28.       }
  29.       if(_root.chickenNumber == 4)
  30.       {
  31.          setProperty("_root.chicken4", _X, _root.chickenX);
  32.       }
  33.       if(_root.chickenNumber == 5)
  34.       {
  35.          setProperty("_root.chicken5", _X, _root.chickenX);
  36.       }
  37.       eggpos = _root.egg1._x;
  38.       if(_root.allchickensgone == 0)
  39.       {
  40.          trace(_root.tempchickenAngle);
  41.          if(_root.tempchickenAngle != 0)
  42.          {
  43.             _root.chickenAngle = eggpos - _root.tempchickenAngle;
  44.          }
  45.          _root.tempchickenAngle = eggpos;
  46.          with(_root.chicken0)
  47.          {
  48.             nextFrame();
  49.             play();
  50.          }
  51.          with(_root.basket)
  52.          {
  53.             nextFrame();
  54.          }
  55.          with(_root.green)
  56.          {
  57.             nextFrame();
  58.          }
  59.          with(_root.sky)
  60.          {
  61.             nextFrame();
  62.          }
  63.          if(_root.chickenNumber > 0)
  64.          {
  65.             with(_root.chicken1)
  66.             {
  67.                nextFrame();
  68.                play();
  69.             }
  70.             with(_root.basket)
  71.             {
  72.                nextFrame();
  73.             }
  74.             with(_root.green)
  75.             {
  76.                nextFrame();
  77.             }
  78.             with(_root.sky)
  79.             {
  80.                nextFrame();
  81.             }
  82.          }
  83.          if(_root.chickenNumber > 1)
  84.          {
  85.             with(_root.chicken2)
  86.             {
  87.                nextFrame();
  88.                play();
  89.             }
  90.             with(_root.basket)
  91.             {
  92.                nextFrame();
  93.             }
  94.             with(_root.green)
  95.             {
  96.                nextFrame();
  97.             }
  98.             with(_root.sky)
  99.             {
  100.                nextFrame();
  101.             }
  102.          }
  103.          if(_root.chickenNumber > 2)
  104.          {
  105.             with(_root.chicken3)
  106.             {
  107.                nextFrame();
  108.                play();
  109.             }
  110.             with(_root.basket)
  111.             {
  112.                nextFrame();
  113.             }
  114.             with(_root.green)
  115.             {
  116.                nextFrame();
  117.             }
  118.             with(_root.sky)
  119.             {
  120.                nextFrame();
  121.             }
  122.             with(_root.baloon)
  123.             {
  124.                nextFrame();
  125.             }
  126.          }
  127.          if(_root.chickenNumber > 3)
  128.          {
  129.             with(_root.chicken4)
  130.             {
  131.                nextFrame();
  132.                play();
  133.             }
  134.             with(_root.basket)
  135.             {
  136.                nextFrame();
  137.             }
  138.             with(_root.green)
  139.             {
  140.                nextFrame();
  141.             }
  142.             with(_root.sky)
  143.             {
  144.                nextFrame();
  145.             }
  146.             with(_root.baloon)
  147.             {
  148.                nextFrame();
  149.             }
  150.          }
  151.          if(_root.chickenNumber > 4)
  152.          {
  153.             with(_root.chicken5)
  154.             {
  155.                nextFrame();
  156.                play();
  157.             }
  158.             with(_root.basket)
  159.             {
  160.                nextFrame();
  161.             }
  162.             with(_root.green)
  163.             {
  164.                nextFrame();
  165.             }
  166.             with(_root.sky)
  167.             {
  168.                nextFrame();
  169.             }
  170.             with(_root.baloon)
  171.             {
  172.                nextFrame();
  173.             }
  174.          }
  175.       }
  176.       if(_root.allchickensgone == 1)
  177.       {
  178.          if(_root.green_currentframe < 155)
  179.          {
  180.             with(_root.green)
  181.             {
  182.                nextFrame();
  183.             }
  184.          }
  185.          _root.chickenAngle = eggpos - _root.tempchickenAngle;
  186.          _root.tempchickenAngle = eggpos;
  187.          with(_root.sky)
  188.          {
  189.             nextFrame();
  190.          }
  191.          with(_root.baloon)
  192.          {
  193.             nextFrame();
  194.          }
  195.          with(_root.bonus)
  196.          {
  197.             nextFrame();
  198.          }
  199.          with(_root.eggtimer)
  200.          {
  201.             nextFrame();
  202.          }
  203.          with(_root.chicken0)
  204.          {
  205.             nextFrame();
  206.          }
  207.          with(_root.chicken1)
  208.          {
  209.             nextFrame();
  210.          }
  211.          with(_root.chicken2)
  212.          {
  213.             nextFrame();
  214.          }
  215.          with(_root.chicken3)
  216.          {
  217.             nextFrame();
  218.          }
  219.          with(_root.chicken4)
  220.          {
  221.             nextFrame();
  222.          }
  223.          with(_root.chicken5)
  224.          {
  225.             nextFrame();
  226.          }
  227.       }
  228.       if(_root.chickenNumber < 5)
  229.       {
  230.          _root.chickenNumber == _root.chickenNumber++;
  231.       }
  232.       else
  233.       {
  234.          _root.chickenNumber = 0;
  235.          _root.allchickensgone = 1;
  236.       }
  237.       _root.score == _root.score++;
  238.       removeMovieClip(_root.egg1);
  239.    }
  240.    if(_root.clock < 20)
  241.    {
  242.       if(_root.bee._currentframe < 600)
  243.       {
  244.          with(_root.bee)
  245.          {
  246.             gotoAndPlay(599);
  247.          }
  248.       }
  249.    }
  250. }
  251.